package com.browan.constellation.weibo;

import java.util.HashMap;
import java.util.Map;

public class UpdateStatus
{
	public static String updateStatus(String status) throws Exception
	{

		HttpClient client = new HttpClient();
		// /////////////////////
		Map<String, String> map = new HashMap<String, String>();
		map.put("status", Hmac_Sha1.encode(status));
		map.put("source", AppManager.APP_KEY);
		// ///////////////////////
		Map<String, String> header = new HashMap<String, String>();
		header.put("Authorization", UserInforManager.getInstence().getAuthorization());
		// /////////////////////////
		String s = client.postMethod(UriManager.UPDATE_STATUS, header, map, false);
		return s;
	}
}